//
//  MyOrderModel.m
//  wtshoppingcite
//
//  Created by TW on 14-12-9.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import "MyOrderModel.h"

@implementation MyOrderModel

- (id)initWithMyOrderInfo:(NSDictionary *)info{
    if(self = [super init]){
        id orderId = [info objectForKey:@"orderId"];
        self.orderId = ObjToString(orderId);
        
        id orderStarted = [info objectForKey:@"orderStarted"];
        self.orderStarted = ObjToString(orderStarted);
        
        id statusId = [info objectForKey:@"statusId"];
        self.statusId = ObjToString(statusId);
        
        id totalCost = [info objectForKey:@"totalCost"];
        self.totalCost = ObjToString(totalCost);
        
        self.orderItems = [info objectForKey:@"orderItems"];

    }
    return self;
}

@end
